﻿#ifndef DOCKWIDGETINFO_H
#define DOCKWIDGETINFO_H

#include <QDockWidget>

namespace Ui {
class DockWidgetInfo;
}

class DockWidgetInfo : public QDockWidget
{
    Q_OBJECT

public:
    explicit DockWidgetInfo(QWidget *parent = nullptr);
    ~DockWidgetInfo();
    QPair<QString, QString> panelID();
    void setRecipeName(QString recipeName);
    void setPanelID(QString panelID_L, QString panelID_R);
    void setRightPanelInfo(double x_mm, double y_mm, double theta, double score);
    void setLeftPanelInfo(double x_mm, double y_mm, double theta, double score);
    void setText(QString text);

public slots:
    void onRobotConnected();
    void onRobotDisconnected();
signals:
    void detectTriggered();
    void loadRecipeTriggered();
private:
    void setRobotState(QString str);
    Ui::DockWidgetInfo *ui;
    QString m_leftPanelID;
    QString m_rightPanelID;
};

#endif // DOCKWIDGETINFO_H
